﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="RequestInfos.aspx.cs" Inherits="Wicresoft.RDW.Manage.RequestInfos" %>

<%@ Register Src="../UserControls/PagerControl.ascx" TagName="PagerControl" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        $(function () {
            $("#<%=btnSelect.ClientID %>").click(checkAllTextValid);
            $(".requestDate").live("focus", function () {
                $(this).datepicker({ dateFormat: 'yy-mm-dd' });
                //$(this).attr("readonly", "readonly");
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="box">
        <div class="main_title">
            <h2>
                <%=Resources.NameResource.RequestRecord%>
            </h2>
        </div>
        <div class="line_gray">
        </div>
        <br />
        <div>
            <span>
                <%=Resources.ManageResource.mgr_lblVisitDate%>：</span>
            <asp:TextBox ID="txtStartDate" runat="server" class="requestDate" Width="85px"></asp:TextBox>
            <span>
                <%=Resources.NameResource.DateTo%></span>
            <asp:TextBox ID="txtEndDate" runat="server" class="requestDate" Width="85px"></asp:TextBox>
            <span>&nbsp<%=Resources.ManageResource.mgr_lblVisitType%>：</span>
            <asp:DropDownList ID="ddlRequestType" runat="server" AppendDataBoundItems="true">
            </asp:DropDownList>
            <span>&nbsp<%=Resources.ManageResource.mgr_lblVisitorsClassification%>：</span>
            <asp:DropDownList ID="ddlCustomerType" runat="server" AppendDataBoundItems="true">
            </asp:DropDownList>
            <span>&nbsp<%=Resources.ManageResource.mgr_lblDept%>：</span>
            <asp:TextBox ID="txtDepartment" runat="server"></asp:TextBox>
            <p>
            </p>
            <span>
                <%=Resources.ManageResource.mgr_lblLocationName%>：</span>
            <asp:DropDownList ID="ddlLocation" runat="server" AppendDataBoundItems="true" AutoPostBack="True"
                OnSelectedIndexChanged="ddlLocation_SelectedIndexChanged">
            </asp:DropDownList>
            <span>&nbsp<%=Resources.ManageResource.mgr_lblLabName%>：</span>
            <asp:DropDownList ID="ddlLab" runat="server" AppendDataBoundItems="true" AutoPostBack="True"
                OnSelectedIndexChanged="ddlLab_SelectedIndexChanged">
            </asp:DropDownList>
            <span>&nbsp<%=Resources.ManageResource.mgr_lblProductName%>：</span>
            <asp:DropDownList ID="ddlProduct" runat="server" AppendDataBoundItems="true">
            </asp:DropDownList>
            <span>&nbsp<%=Resources.NameResource.RequestStatus%>：</span>
            <asp:DropDownList ID="ddlStatus" runat="server" AppendDataBoundItems="true">
            </asp:DropDownList>
            <asp:Button ID="btnSelect" runat="server" class="CommandButton" OnClick="btnSelect_Click" />
            <asp:Label ID="lblOverError" runat="server" ForeColor="Red"></asp:Label>
        </div>
        <div class="HistoryApplicationContent">
            <asp:GridView ID="grRuquestInfos" Width="100%" runat="server" AutoGenerateColumns="false"
                OnRowDataBound="grRuquestInfos_RowDataBound" HeaderStyle-CssClass="dcTableHeader"
                RowStyle-CssClass="dcTableAlternatingItem" AlternatingRowStyle-CssClass="dcTableItem">
                <Columns>
                    <asp:BoundField DataField="RequestId" Visible="false" />
                    <asp:BoundField />
                    <asp:BoundField DataField="RequestUserId" />
                    <asp:BoundField DataField="RequestType" />
                    <asp:TemplateField>
                        <ItemTemplate>
                            <%# DataBinder.Eval(Container.DataItem, "RequestDate","{0:yyyy-MM-dd}")%>&nbsp;
                            <%# DataBinder.Eval(Container.DataItem, "StartTime")%>--
                            <%# DataBinder.Eval(Container.DataItem, "EndTime")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="RequestId" />
                    <asp:BoundField DataField="CreateTime" DataFormatString="{0:yyyy-MM-dd}" />
                    <asp:BoundField DataField="Status" />
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnDetail" class="CommandButton" runat="server"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    <table width="100%">
                        <tr class="dcTableHeader">
                            <th>
                                <%=Resources.NameResource.No%>
                            </th>
                            <th>
                                <%=Resources.NameResource.Request_RequestUserID%>
                            </th>
                            <th>
                                <%=Resources.NameResource.Request_RequestType%>
                            </th>
                            <th>
                                <%=Resources.NameResource.Request_DataTime%>
                            </th>
                            <th>
                                <%=Resources.NameResource.Request_CompanyName%>
                            </th>
                            <th>
                                <%=Resources.NameResource.Request_CreateTime%>
                            </th>
                            <th>
                                <%=Resources.NameResource.Lab_Status%>
                            </th>
                            <th>
                                <%=Resources.ManageResource.mgr_lblAction%>
                            </th>
                        </tr>
                    </table>
                </EmptyDataTemplate>
            </asp:GridView>
            <uc1:PagerControl ID="PagerControll" runat="server" OnPageChange="PagerControll_PageChange" />
        </div>
    </div>
</asp:Content>
